// 系统业务验证规则
import * as RuleUtils from './utils_rules'

export const RegistUserRules = {
    username: [RuleUtils.getRequired({
        label: '用户名'
    })],
    password: RuleUtils.getRule('pwd'),
    nickname: [RuleUtils.getMax({label:'昵称', max:20})],
    phone: RuleUtils.getRule('mobile_required'),
    email: RuleUtils.getRule('email'),
    province: [RuleUtils.getMax({label:'省名称', max:10})],
    city: [RuleUtils.getMax({label:'城市名称', max:10})]
}
